package de.abuwipp.jee6atdd.domain1;

import net.thucydides.core.annotations.DefaultUrl;
import net.thucydides.core.pages.PageObject;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

@DefaultUrl("http://localhost:8080/sample/feature1.xhtml")
public class Feature1Page extends PageObject {

    @FindBy(id = "title")
    private WebElement title;

    public Feature1Page(WebDriver driver) {
        super(driver);
    }

    String getTitleOfContent() {
        return element(title).getText();
    }

}
